public class Page {

	private String title;
	private String text;
	
	public Page(String title) {
		if(title != null)
			this.title = title;
		text = "";
	}
	
	void addText(String text) {
		if ( text != null )
			this.text += text;
	}
	
	void removeText() {
		this.text = "";
	}
	
	String getPageContents() {
		return this.title + "\n" + this.text;
	}
}
